package com.matt.docpro.mapper;

import com.matt.docpro.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * メッセージ
 */
@Mapper
public interface MessageMapper {

    List<Message> getChatMessage(String user1, String user2);

    Message getLatestMessage(String user1, String user2);

    void insert(Message message);

    int getUnreadCount(String senderId, String receiverId);

    void updateRead(String senderId, String receiverId);


}